<%--
    Document   : loginFailed
    Created on : 16.10.2010, 09:31:44
    Author     : nico.rehwaldt
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="http://nixis.de/jsp/tags/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<p>Please type your credentials to login</p>
<form method="post" class="ajax" action="<u:url value="/user/login"/>">
    <fieldset>
        <label>Username</label> <input type="text" name="uname" />
    </fieldset>
    <fieldset>
        <label>Password</label> <input type="password" name="upassword" />
    </fieldset>
    <fieldset class="hidden">
        <input type="submit" value="login" />
    </fieldset>
</form>

<p class="note-small">Not yet registered? Feel free to do it <a class="ajax" href="<u:url value="/user/register"/>">here</a>.</p>

<script type="text/javascript">
    $("#login-dialog").dialog({
        buttons: {
            Ok: function() {
                $(this).find("form").submit();
            },
            Cancel: function() { 
                $(this).dialog("close");
            }
        }
    }).find("form").ajaxForm({target: "#login-form"});
        
</script>
